<?php
/**
 * View do formulário de apoio_situacao
 * @filesource  07/04/2011
 * @author      Estrada Virtual <http://estradavirtual.com.br>
 * @copyright   Copyright <2011> Estrada Virtual
 * @package     <<application>>
 * @subpackage  <<application>>.application.views
 * @version     $Id$
 */
 ?>
<div class="ev-formulario">
    <h1><?php echo $this->translate('id_apoio_situacao'); ?></h1>
    <form action="<?php echo $this->baseUrl() ?>/projeto/apoio-situacao/gravar" method="post" name="formulario" id="formulario">
        
        <label for="id_apoio_situacao"><?php echo $this->translate('id_apoio_situacao'); ?>&nbsp;<span class="campoObrigatorio">*</span>: </label>
        <input class="text ui-widget-content ui-corner-all  required " type="text" name="id_apoio_situacao" id="id_apoio_situacao" value="<?php echo $this->row->id_apoio_situacao; ?>" title="<?php echo $this->translate("id_apoio_situacao"); ?>"   /><br />

        <label for="st_nome"><?php echo $this->translate('st_nome'); ?>&nbsp;<span class="campoObrigatorio">*</span>: </label>
        <input class="text ui-widget-content ui-corner-all  required " type="text" name="st_nome" id="st_nome" value="<?php echo $this->row->st_nome; ?>" title="<?php echo $this->translate("st_nome"); ?>"  maxlength="45" /><br />

        <label for="cs_responsavel"><?php echo $this->translate('cs_responsavel'); ?>&nbsp;<span class="campoObrigatorio">*</span>: </label>
        <input class="text ui-widget-content ui-corner-all  required " type="text" name="cs_responsavel" id="cs_responsavel" value="<?php echo $this->row->cs_responsavel; ?>" title="<?php echo $this->translate("cs_responsavel"); ?>"   /><br />

        <div id="botoesAcao">
            <input type="submit" class="btSalvar" name="enviar" id="enviar" value="Enviar" />
            <input type="button" class="btExcluir" name="cancelar" id="cancelar" value="Cancelar" />
        </div>
    </form>
</div>

<script type="text/javascript">
    $().ready(function() {
        $("form").validate();
        $('#cancelar').click(function(){
            window.location = "<?php echo $this->baseUrl() ?>/projeto/apoio-situacao";
        });
    });
</script>